package eHealth.android.Helpers;

/**
 * 
 * @author Thomas Rouvinez, Lionel Rey, Arnaud Durand.
 * Date 15.03.2012
 * 
 * Goal: provide with a pojo to store a medical data.
 *
 */
public class MedicalDataItem
{
	/**
	 *  String for the id of the medical data.
	 */
	private String id;
	
	/**
	 *  Double for the value of the medical data.
	 */
	private double value;
	
	/**
	 *  String for the date of the medical data.
	 */
	private String date;
	
	/**
	 *  Integer for the category of the medical data.
	 */
	private int category;
	
	/**
	 * Integer for the type of the medical data.
	 */
	private int type;
	
	// ----------------------------------------------------------------------------------
	// Constuctors
	// ----------------------------------------------------------------------------------
	
	/**
	 * Empty constructor.
	 */
	public MedicalDataItem(){};
	
	/**
	 * Constructor for a whole medical data.
	 * @param id
	 * @param value
	 * @param date
	 * @param category
	 * @param type
	 */
	public MedicalDataItem(String id, double value, String date, int category, int type)
	{	
		this.id = id;
		this.value= value;
		this.category = category;
		this.type = type;
		this.date = date;
	}
	
	/**
	 * Constructor for a whole medical data but the id.
	 * @param value
	 * @param date
	 * @param category
	 * @param type
	 */
	public MedicalDataItem(double value, String date, int category, int type){
		this.value= value;
		this.category = category;
		this.type = type;
		this.date = date;
	}
	
	// ----------------------------------------------------------------------------------
	// Getters - setters.
	// ----------------------------------------------------------------------------------
	
	/**
	 * Getter for the id of the medical data.
	 * @return the id of the medical data.
	 */
	public String getId() {
		return id;
	}

	/**
	 * Setter for the id of the medical data.
	 * @param id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * Getter for the value of the medical data.
	 * @return the value of the medical data.
	 */
	public double getValue() {
		return value;
	}

	/**
	 * Setter for the value of the medical data.
	 * @param value
	 */
	public void setValue(double value) {
		this.value = value;
	}

	/**
	 * Getter for the date of the medical data.
	 * @return the date of the medical data.
	 */
	public String getDate() {
		return date;
	}

	/**
	 * Setter for the date of the medical data.
	 * @param date
	 */
	public void setDate(String date) {
		this.date = date;
	}

	/**
	 * Getter for the category of the medical data.
	 * @return the category of the medical data.
	 */
	public int getCategory() {
		return category;
	}

	/**
	 * Setter for the category of the medical data.
	 * @param category
	 */
	public void setCategory(int category) {
		this.category = category;
	}

	/**
	 * Getter for the type of the medical data.
	 * @return the type of the medical data.
	 */
	public int getType() {
		return type;
	}

	/**
	 * Setter for the type of the medical data.
	 * @param type
	 */
	public void setType(int type) {
		this.type = type;
	}	
}